package com.gthncz.beans;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

public class Profile {
	@Autowired
	@Qualifier("student1")
	private Student student1;
	
	public void printAge() {
		System.out.println(" Student1 age is : " + student1.getAge());
	}
	
	public void printName() {
		System.out.println(" Student1 name is : " + student1.getName());
	}

}
